import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      // 无 TAB 页面
      path: '/',
      name: 'Home',
      component: () => import('../views/home/Home.vue')
    },
    {
      // 监控设备
      path: '/monitoring',
      name: 'Monitoring',
      component: () => import('../views/equipment/monitoring/Monitoring.vue')
    },
    {
      // 门禁
      path: '/entrance-guard',
      name: 'EntranceGuard',
      component: () => import('../views/equipment/entrance-guard/EntranceGuard.vue')
    },
    {
      // 人员
      path: '/personnel',
      name: 'Personnel',
      component: () => import('../views/equipment/personnel/Personnel.vue')
    }
  ]
})

export default router
